# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

# those scripts are based on debians ifenslave-2.6 scripts

pkgname=bonding
pkgver=2.6
pkgrel=5
pkgdesc="Scripts for network interface bonding"
url="https://wiki.alpinelinux.org/wiki/Bonding"
arch="noarch"
license="GPL-2.0-or-later"
source="bonding.pre-up bonding.up bonding.post-down"

package() {
	cd "$srcdir"
	for i in pre-up up post-down; do
		install -Dm755 bonding.$i "$pkgdir"/etc/network/if-$i.d/bonding
	done
}

sha512sums="de37ddcd56b512f7adda2bddf9c84618796e95c8bc23df8948452c892cd48eff7043d4f0f5ee068bcd634c11907f6859a6216a72d50cb6a4d2473a7a641c71f5  bonding.pre-up
5c81b2891c281df2df4c98a560f776b857e4b6b20ac733858683d87fb7b1ac57423f57003cfdcfac24c8257de31062c4596270e9482b8d35d517e29f2bac0951  bonding.up
c6b6f06d1c0a7be1022feb18cdcc55780cad2200ac0121f276527442becb7d75a7850b809ae9c6d5b914a1a03f791bd65c088f1289ce0e28b5a02bd86e3868de  bonding.post-down"
